package org.snake.spring.framework.webmvc.servlet;

import java.util.Map;

/**
 * 视图和模型对象
 *
 * @author Ray
 */
public class RAYModelAndView
{

    /**
     * 视图名称
     */
    private String viewName;

    /**
     * 视图对应的实体对象
     */
    private Map<String, ?> model;


    public RAYModelAndView(String viewName)
    {
        this.viewName = viewName;
    }

    public RAYModelAndView(String viewName, Map<String, ?> model)
    {

        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName()
    {

        return viewName;
    }

    public void setViewName(String viewName)
    {

        this.viewName = viewName;
    }

    public Map<String, ?> getModel()
    {

        return model;
    }

    public void setModel(Map<String, ?> model)
    {

        this.model = model;
    }

}
